import request from '@/utils/request'
export const url = '/mgrService/'
export const getFileList = (params) => {
  return request({
    method: 'get',
    url: url + 'files',
    params: params
  })
}
export const deleteFile = (id) => {
  return request({
    method: 'delete',
    url: url + 'files/' + id
  })
}
export const createFile = (data) => {
  return request({
    method: 'post',
    url: url + 'files',
    data: data
  })
}
export const updateFileName = (data, id) => {
  return request({
    method: 'put',
    url: url + 'files/' + id,
    data: data
  })
}
